

#include <stdio.h>
#include "XLog.h"

#include <mutex>

#include <thread>
#include <algorithm>
#include <cctype>


using namespace std;
void XSleep(int mis)
{
    chrono::milliseconds du(mis);
    this_thread::sleep_for(du);
}

AutoCompleteLog::AutoCompleteLog(const char *format, ...) {

    va_list args;
    va_start(args,format);
    int ret = vsnprintf(buf,1020,(const char *)format,args);
    va_end(args);

    XLOGD("%s begin",buf);
}

AutoCompleteLog::~AutoCompleteLog(){
    XLOGD("%s end",buf);
}

